import java.lang.Math;

public class State
{
	private String 	name;
	private int		pop = 0;
	private int		seats = 1;

	public State(String name, int pop)
	{
		this.name = name;
		this.pop = pop;	
	}
		
	public void addSeat()
	{	
		seats++;
	}
	
	public int getPopD()
	{
		double D = Math.sqrt(seats*(seats+1));
		return (int) Math.ceil(pop/D);
	}
	
	public String getName()
	{
		return name;
	}

	public int getSeats()
	{
		return seats;
	}

	public int getPop()
	{
		return pop;
	}
}